package com.wnxy.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("文章对象")
@TableName("informations")
@Data
public class Article {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("资讯id")
    private Long id;

    @ApiModelProperty("资讯标题")
    private String title;

    @ApiModelProperty("资讯内容")
    private String content;

    @ApiModelProperty("回复次数")
    private Integer replyCount;

    @ApiModelProperty("查看次数")
    private Integer viewCount;

    @ApiModelProperty("发表时间")
    private Date reportTime;

    @ApiModelProperty("最后回复时间")
    private Date lastPostTime;
}
